def findKthLargest(nums,k):
    nums.sort(reverse=True)
    return nums[k-1]
#测试
print(findKthLargest([6,1,2,2,3,4,5],2))   #输出为5
print(findKthLargest([7,3,2,9,12,17,29,57,43,1,11],5))   #输出为12